//    “Copyright 2008, 2009 Srikumar Venugopal & James Broberg”
//
//    This file is part of OpenPEX.
//
//    OpenPEX is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 2 of the License, or
//    (at your option) any later version.
//
//    OpenPEX is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with OpenPEX.  If not, see <http://www.gnu.org/licenses/>.

package org.unimelb.openpex.xen;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Logger;

import com.xensource.xenapi.Task;

public class XenTaskHandler {

	static Logger logger = Logger.getLogger(XenTaskHandler.class.getName());
	
	
	private final ExecutorService xenTaskService;
	private static XenTaskHandler taskHandler = null;
	
	private XenTaskHandler(){
		xenTaskService = Executors.newFixedThreadPool(10);
	}
	
	public static XenTaskHandler getInstance(){
		if(taskHandler==null)
			taskHandler = new XenTaskHandler();
		return taskHandler;
	}
	
	public void addTask(Task xenTask){
		
	}
	
}
